﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using AttributeRouting;
using AttributeRouting.Web.Mvc;
using PH.Model.Systems;
using PH.Logic.Systems;
namespace PH.Web.Management.Areas.Systems.Controllers
{
    [RouteArea("Systems")]
    [RoutePrefix("Bureau")]
    public class BureauController : Controller
    {
        [Route("")]
        public ActionResult Index()
        {
            return View();
        }

        [Route("Bureaus")]
        public ActionResult Bureaus()
        {
            return View();
        }

        [Route("Edit/{guid:guid}")]
        public ActionResult Edit(Guid? guid)
        {
            var model = new BureauModel();
            if (guid != null)
                model = BureauLogic.GetModel(guid.Value);
            return PartialView(model);
        }
    }
}
